package ar.com.nexttome.services;

import java.util.List;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

import ar.com.nexttome.entities.Persona;

//@WebService(name = "PosicionesService", targetNamespace = "http://nexttome.com.ar/services/posicionesservice")
@WebService

/**
 * SEI (Service Endpoint Interf ace) del servicio PosicionesService.
 * @author
 * @date
 */
 //TODO Completar la informacion

public interface PosicionesService {

	@WebMethod
	@RequestWrapper(className = "ar.com.nexttome.services.Posiciones.InformarPosicionRequest")
    @ResponseWrapper(className = "ar.com.nexttome.services.Posiciones.InformarPosicionResponse")
	@WebResult(name = "out")
	public boolean informarMiPosicion (
			@WebParam(name = "id", header = false) 	String id,
			@WebParam(name = "latitud", header = false) double latitud,
			@WebParam(name = "longitud", header = false) double longitud);

	@WebMethod
	@RequestWrapper(className = "ar.com.nexttome.services.Posiciones.ObtenerPersonasCercanasRequest")
    @ResponseWrapper(className = "ar.com.nexttome.services.Posiciones.ObtenerPersonasCercanasResponse")
	@WebResult(name = "out")
	public List<Persona> obtenerPersonasCercanas (
			@WebParam(name = "id", header = false)	String id);
}